package com.wanhe.vip.api;

import com.google.gson.JsonObject;
import com.wanhe.vip.api.bean.BaseResponse;
import com.wanhe.vip.api.bean.CardInfo;
import com.wanhe.vip.api.bean.PageResponse;
import com.wanhe.vip.api.bean.VipCard;

import java.util.HashMap;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * Created by XieZaiWei on 2017/4/11.
 * 会员api
 */

public interface VipApi {
	@POST("GetMember")
	Observable<BaseResponse<PageResponse<VipCard>>> getCardList(@Body HashMap<String, String> requestBody);

	@POST("GetMember")
	Observable<BaseResponse<CardInfo>> getCardInfo(@Body HashMap<String, String> requestBody);

	@POST("GetMember")
	Observable<BaseResponse<JsonObject>> preConsume(@Body HashMap<String, String> requestBody);

	@POST("GetMember")
	Observable<BaseResponse<JsonObject>> doConsume(@Body HashMap<String, String> requestBody);
}
